package ace.tool.generate.code.impl.resolver.ui.resolver;

import ace.tool.generate.code.impl.resolver.ui.model.bo.UiProjectContext;
import ace.tool.generate.code.impl.resolver.ui.model.bo.UiProjectInfo;
import ace.tool.generate.code.impl.service.model.input.GenerateInput;
import lombok.RequiredArgsConstructor;

/**
 * @author caspar
 * @date 2023/11/17 10:34
 */
@RequiredArgsConstructor
public class UiProjectContextResolver {
  private final GenerateInput input;

  public UiProjectContext resolve() {
    UiProjectInfo uiProjectInfo = new UiProjectInfoResolver(this.input).resolve();
    return UiProjectContext.builder().uiProjectInfo(uiProjectInfo).build();
  }
}
